<template>
    <div class="replies">

        <ul>
            <li v-for="(item,index) in data.replies" :key="index">
                <reply :data='item'></reply>
            </li>
        </ul>
    </div>
</template>

<script>
import Reply from './Reply.vue'
export default {
    props:[
        'oid'
    ],
    components:{
        Reply
    },
    data(){
        return{
            data:{}
        }
    },
    created(){
        this.$axios.get('/static//x/v2/reply/main',{
            params:{
                oid:this.oid,
                type:1
            }
        }).then(res=>{
            console.log(res.data)
            this.data=res.data.data
        })
    }
}
</script>

<style>

</style>